##完成基本内容的封装，比如findelement driver click等
from appium.webdriver.webdriver import WebDriver


class BasePage:
    def __init__(self, driver: WebDriver):
        self.driver = driver

    def find(self,by,value):
        return self.driver.find_element(by,value)

    def find_and_click(self,by,value):
        self.find(by,value).click()

    def find_and_sendkey(self,by,value,inf):
        self.find(by,value).send_keys(inf)